package com.hrrt.api.server.controller;

//import com.hrrt.common.base.BaseController;
//import io.swagger.annotations.Api;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Controller;


//@Controller
//@Api(value = "home", description = "home")
//public class HomeApiController extends BaseController {
//
//    private static Logger _log = LoggerFactory.getLogger(HomeApiController.class);
//
//    @Autowired
//    private HomeGatewayHomeService homeGatewayHomeService;
//
//    @ApiOperation(value = "findByRoomId")
//    @RequestMapping(value = "/findByRoomId", method = RequestMethod.GET)
//    @ResponseBody
//    public boolean findByRoomId(String roomId) {
//        boolean flag = false;
//        HomeGatewayHomeExample homeGatewayHomeExample = new HomeGatewayHomeExample();
//        homeGatewayHomeExample.createCriteria().andRoomIdEqualTo(roomId);
//        List<HomeGatewayHome> list = homeGatewayHomeService.selectByExample(homeGatewayHomeExample);
//        if(list.size() > 0) {
//            flag = true;
//        }
//        return flag;
//    }
//
//}
